package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Category;
import com.itheima.pojo.Dish;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface DishService extends IService<Dish> {

    /**
     * 保存菜品和口味
     * @param dishDto 菜品和口味数据
     */
    void saveDishAndFlavor(DishDto dishDto);


    DishDto queryDishById(Long id);

    void updateDishAndFlavor(DishDto dishDto);
}
